//
//  RYCRetryPolicy.h
//  EWallet
//
//  Created by mazw on 13-8-23.
//  Copyright (c) 2013年 payegis. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSUInteger RYCRetryPolicyDefaultRetryCount;

@class RYCRetryPolicy;

typedef void (^ RYCDidStartRetryBlock)(void);

@interface RYCRetryPolicy : NSObject
{
    NSUInteger _retryCount;
}
@property (nonatomic, copy) RYCDidStartRetryBlock didStartRetryBlock;
@property (nonatomic) NSUInteger maxRetryCount;//default is RYCRetryPolicyDefaultRetryCount

+ (id)retryPolicy:(RYCDidStartRetryBlock)startBlock maxRetryCount:(NSUInteger)maxRetryCount;
- (BOOL)doRetry;
@end
